FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app

# 复制发布后的文件
COPY . .

# 容器启动时运行 DbMigrator
ENTRYPOINT ["dotnet", "Acme.BookStore.DbMigrator.dll"]